<!-- eslint-disable vue/multi-word-component-names -->
<template>
  <div>
    我是注册页
    <h2>我是query的{{$route.query.username}}</h2>
    <h2>我是params的{{$route.params.username}}</h2>
  </div>
</template>
 
<script>
export default {
  created(){
    console.log(this.$route.query.username);
    console.log(this.$route.params.username);
  }
}
</script>

<style scoped>
</style>